<template>
  <div>
<tab-control @tabClick="onClick" :titles="['测试1','test2','cs3']"></tab-control>
<h1>{{ pageDate[pageIndex] }}</h1>
</div>
</template>

<script>
import TabControl from '@/组件通讯/components/TabControl.vue';
export default {
  components: { TabControl },
  data() {
    return {
        pageDate:["list1","list2","list3"],
        pageIndex:0
    }
  },methods:{
    onClick(index){
      this.pageIndex = index
    }
  }


}
</script>

<style>

</style>